package com.foo.game.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.foo.common.base.constants.GameDDLConstants;
import com.google.gson.annotations.Expose;

@Entity
@Table(name = "GAME")
public class Game {
	@Id
	@javax.persistence.GeneratedValue(generator = "system-uuid")
	@org.hibernate.annotations.GenericGenerator(name = "system-uuid", strategy = "uuid2")
	@Expose
	@Column(name = "ID")
	private String id;
	@Column(name = "GAME_INDEX", columnDefinition = GameDDLConstants.tinyintNotNull)
	private int gameIndex;
	@Expose
	@Column(name = "EN_NAME", columnDefinition = " VARCHAR(25) NOT NULL DEFAULT '' ")
	private String enName;
	@Expose
	@Column(name = "CN_NAME", columnDefinition = "VARCHAR(50) DEFAULT ''")
	private String cnName;
	@Expose
	@Column(name = "SITE_RATING", columnDefinition = GameDDLConstants.tinyintNotNull)
	private int siteRating;
	@Expose
	@Column(name = "GAME_URL", columnDefinition = "VARCHAR(100) DEFAULT ''")
	private String url;

	public int getSiteRating() {
		return siteRating;
	}

	public void setSiteRating(int siteRating) {
		this.siteRating = siteRating;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getEnName() {
		return enName;
	}

	public void setEnName(String enName) {
		this.enName = enName;
	}

	public String getCnName() {
		return cnName;
	}

	public void setCnName(String cnName) {
		this.cnName = cnName;
	}

	public int getGameIndex() {
		return gameIndex;
	}

	public void setGameIndex(int gameIndex) {
		this.gameIndex = gameIndex;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

}
